﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="Teams.aspx.cs" Inherits="RockPaperScissors.Web.admin.Teams" %>
<asp:Content ID="main" ContentPlaceHolderID="cntMain" runat="server">

    <div>
        Team Name <asp:TextBox ID="txtTeamName" runat="server" />
        Password <asp:TextBox ID="txtPassword" TextMode="Password" runat="server" />
        <asp:Button ID="btnSave" Text="Save" runat="server" onclick="btnSave_Click" />
        <asp:Repeater ID="rptTeamList" runat="server">
            <HeaderTemplate><ul style="list-style:none;"></HeaderTemplate>
            <ItemTemplate>
                <li>
                    <asp:ImageButton ID="btnRemoveTeam" CausesValidation="false" AlternateText="Remove" ImageUrl="../images/remove.png" CommandName="delete" CommandArgument='<%#Eval("UserName") %>'  OnCommand="btnCommandHandler_Command" OnClientClick="return confirm('Are you sure you want to delete this team?');"  runat="server"/>
                    <%# DataBinder.Eval(Container.DataItem, "UserName") %>
                </li>
            </ItemTemplate>
            <FooterTemplate></ul></FooterTemplate>
        </asp:Repeater>
    </div>

</asp:Content>
